import type { App } from 'vue';
import SvgIcon from '@/components/common/SvgIcon/index.vue';
import PageWrapLayout from '@/components/PageWrapLayout/index.vue';
import ConfirmButton from '@/components/common/ConfirmButton/index.vue';

/**
 * 注册全局组件
 * @param app Vue应用实例
 */
export function setupGlobalComponents(app: App) {
  // 注册 SVG 图标组件
  app.component('SvgIcon', SvgIcon);

  // 注册页面布局组件
  app.component('PageWrapLayout', PageWrapLayout);

  // 注册确认按钮组件
  app.component('ConfirmButton', ConfirmButton);
}
